import request from '@/utils/request'

// 查询评价管理列表
export function listEvaluateManagement(query) {
  return request({
    url: '/orderManagement/evaluateManagement/list',
    method: 'get',
    params: query
  })
}

// 查询评价管理详细
export function getEvaluateManagement(id) {
  return request({
    url: '/orderManagement/evaluateManagement/' + id,
    method: 'get'
  })
}

// 新增评价管理
export function addEvaluateManagement(data) {
  return request({
    url: '/orderManagement/evaluateManagement',
    method: 'post',
    data: data
  })
}

// 修改评价管理
export function updateEvaluateManagement(data) {
  return request({
    url: '/orderManagement/evaluateManagement',
    method: 'put',
    data: data
  })
}

// 删除评价管理
export function delEvaluateManagement(id) {
  return request({
    url: '/orderManagement/evaluateManagement/' + id,
    method: 'delete'
  })
}

// 导出评价管理
export function exportEvaluateManagement(query) {
  return request({
    url: '/orderManagement/evaluateManagement/export',
    method: 'post',
    params: query
  })
}

//根据商户id查询评价
export function getEvaluateByMerchantId(mid) {
  return request({
    url: '/orderManagement/evaluateManagement/' + mid,
    method: 'get'
  })
}